package com.zhiwei.project.controller.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * function: 数据字典Vo
 * author: zhiwei_yang
 * time: 2020/2/9-16:24
 */
@Data
@ApiModel("数字字典")
public class DictionaryVo {

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private String uuid;

    /**
     * 字典编码
     */
    @ApiModelProperty("字典编码")
    private String code;

    /**
     * 字典值
     */
    @ApiModelProperty("字典值")
    private String value;

    /**
     * 字典描述
     */
    @ApiModelProperty("字典描述")
    private String description;

    /**
     * 父类型编码
     */
    @ApiModelProperty("父类型编码")
    private String parentType;

    /**
     * 是否有效
     */
    @ApiModelProperty("是否有效")
    private Short enableFlag;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private Date updateTime;
}
